<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%customer_group}}".
 *
 * @property int $customer_group_id
 * @property int $approval
 * @property int $company_id_display
 * @property int $company_id_required
 * @property int $tax_id_display
 * @property int $tax_id_required
 * @property int $sort_order
 */
class CustomerGroup extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%customer_group}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['approval', 'company_id_display', 'company_id_required', 'tax_id_display', 'tax_id_required', 'sort_order'], 'required'],
            [['approval', 'company_id_display', 'company_id_required', 'tax_id_display', 'tax_id_required', 'sort_order'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'customer_group_id' => Yii::t('app', 'Customer Group ID'),
            'approval' => Yii::t('app', 'Approval'),
            'company_id_display' => Yii::t('app', 'Company Id Display'),
            'company_id_required' => Yii::t('app', 'Company Id Required'),
            'tax_id_display' => Yii::t('app', 'Tax Id Display'),
            'tax_id_required' => Yii::t('app', 'Tax Id Required'),
            'sort_order' => Yii::t('app', 'Sort Order'),
        ];
    }
}
